<template>
	<view class="page-header df-ac">
		<image src="../static/imgs/back.png" mode="" class="icon-back" v-if="showBack" @click="goBack"></image>
		<view class="title tac">{{title}}</view>
	</view>
</template>

<script>
	export default {
		props:{
			showBack:{
				type:Boolean,
				default:true
			},
			title: {
				type: String,
				defatule:''
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			goBack() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
.page-header {
	position: relative;
	padding-top: 90rpx;
	.icon-back {
		width: 30rpx;
		height: 30rpx;
		position: absolute;
		left: 30rpx;
	}
	.title {
		width: 100%;
		font-size: 30rpx;
		font-weight: bold;
	}
}
</style>
